package com.easylinkin.linkappapi.alarm.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.alarm.entity.AlarmProcess;

/**
 * <p>
 * 服务类-告警处理
 * </p>
 *
 * @author TongJie
 * @since 2020-04-27
 */
public interface AlarmProcessService extends IService<AlarmProcess> {

    /**
     * 新增告警处理
     *
     * @param alarmProcess 对象-告警处理
     */
    void add(AlarmProcess alarmProcess);

    /**
     * 查询多条
     */
    List<AlarmProcess> getAlarmProcesses(AlarmProcess alarmProcess);

    /**
     * 查询分页
     */
    IPage<AlarmProcess> getAlarmProcessPage(Page page, AlarmProcess customQueryParams);

    /**
     * 根据id查询单条
     */
    AlarmProcess getAlarmProcess(String alarmId);

    boolean deleteBatch(List<AlarmProcess> alarmProcessList);



    /**
     * 批量处理告警
     * @param processResult 处理结果
     * @param mistakeFlag 是否误报
     * @param alarmProcessList 批量处理列表 vo
     */
    void addBatch(String processResult, Integer mistakeFlag, List<AlarmProcess> alarmProcessList);
}
